package br.com.projetoFinalAvancado;

import android.app.Activity;
import android.content.res.Configuration;
import android.os.Bundle;

public class MapaActivity extends Activity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
			finish();
			return;
		}
		setContentView(R.layout.mapa_activity);
		Bundle extras = getIntent().getExtras();

		if (extras != null) {
			MapaFragment mapa = new MapaFragment();
			mapa.setMapa(extras.getInt("pac_id"));
			
//			mapa.setArguments(extras);
//
//			getFragmentManager().beginTransaction().add(R.id.mapFrag, mapa).commit();
		}
	}
}
